<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>登录</title>
		<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, width=device-width">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-touch-fullscreen" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta name="format-detection" content="telephone=no">
		<meta name="format-detection" content="address=no">
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/common.css">
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/index.css">
		<link rel="stylesheet" type="text/css" href="__PUBLIC__/home/css/mui.min.css"/>
		<link rel="stylesheet" href="__PUBLIC__/home/css/reset.css">
		<script type="text/javascript" src="__PUBLIC__/home/js/jquery.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/home/js/jquery.flexslider-min.js"></script>
		<script src="__PUBLIC__/home/js/hmt.js" type="text/javascript"></script>
		<script src="__PUBLIC__/home/js/swiper.min.js" type="text/javascript" ></script>
		<script type="text/javascript" src="__PUBLIC__/home/layer/mobile/layer.js"></script>
	</head>
	<body>
		<!--header star-->
		<header class="hasManyCity hasManyCitytwo" id="header">
			<a href="javascript:history.go(-1)" class="fl fanhui"><i class="iconfont icon-fanhui"></i></a>
			<div class="header-tit">
				会员中心
			</div>
			<a href="javascript:void(0)" onclick="setup()" class="fr shoucang sousuo"><i class="iconfont icon-shezhi"></i></a>
			<a href="#" class="fr shoucang sousuo"><i class="iconfont icon-kefu1"></i></a>			
		</header>
	    <!--header end-->
	    <div id="container">		
			<div id="main">
				<div class="warp warpthree clearfloat">
					<div class="recharge clearfloat">
								    <div class="warp clearfloat">
			    	<div class="h-top clearfloat box-s">
			    		<div class="tu clearfloat fl">
			    			<img src="{$info.headimgurl}"/>
			    		</div>
			    		<div class="content clearfloat fl">
			    			<p class="hname" style="line-height:0.55rem">亲爱的：{$info.nickname}</p>
			    			<p class="htel">请绑定账号</p>
			    		</div>

			    	</div>
			    	<form method="post" action="__APP__/GetUserinfo/adduser" id="frm">
			    		<div class="czhi clearfloat box-s">
			    			<p>账号</p>
			    			<input type="text" name="username" value="" placeholder="请输入邮箱号码" />
			    			<span></span>
			    		</div>
			    		<div class="czhi clearfloat box-s">
			    			<p>密码</p>
			    			<input type="password" name="password" value="" placeholder="请输入密码" />
			    			<span></span>
			    		</div>
			    		<input type="hidden" name="openid" value="{$info.openid}">
			    		<input type="hidden" name="wname" value="{$info.nickname}">
			    		</form>
			    	</div>
			    	<div class="bottom clearfloat">
			    			<a href="javascript:void(0)" onclick="$('#frm').submit()" class="db fl btn ra3" >确定</a>
			    			<a href="__APP__/Registe/getpwd" class="db fr btn ra3">找回密码</a>
			    		</div>
			    	<!-- <div class="cash clearfloat">
						<div class="shang xia clearfloat">
			    			<ul>
			    				<li>
			    					<a href="__APP__/Registe/registe">
			    						<p><i class="iconfont icon-tuangou"></i></p>
			    						<span>注册账号</span>
			    					</a>
			    				</li>
			    				<li>
			    					<a href="javascript:void(0);" onclick="jsfun()">
			    						<p><i class="iconfont icon-baihuo"></i></p>
			    						<span>QQ登录</span>
			    					</a>
			    				</li>
			    				<li>
			    					<a href="javascript:void(0);" onclick="jsfun()">
			    						<p><i class="iconfont icon-shangjia"></i></p>
			    						<span>微信登录</span>
			    					</a>
			    				</li>
			    			</ul>
			    		</div>
			    	</div> -->
<!-- 			    	<div class="bottom clearfloat">
			    			<a href="#" class="db fl btn ra3">确定</a>
			    			<a href="#" class="db fr btn ra3">取消</a>
			    	</div> -->
				</div>
			</div>
		</div>
	    
		<!--footer star-->
	  <!--   <footer id="footer">
			<div>
				<a href="__APP__/Index">
					<div class="icon i-1"></div>
					<p>首页</p>
				</a>
			</div>
			<div>
				<a href="#">
					<div class="icon i-5"></div>
					<p>附近</p>
				</a>
			</div>
			<div>
				<a href="rush.html">
					<div class="icon i-2"></div>
					<p>抢购</p>
				</a>
			</div>
			<div>
				<a href="#">
					<div class="icon i-3"></div>
					<p>关注</p>
				</a>
			</div>
			<div>
				<a href="__APP__/User/index">
					<div class="icon i-4 on"></div>
					<p>我的</p>
				</a>
			</div>			
		</footer> -->
		<!--footer end-->
	</body>
	<script type="text/javascript">
		function setup(){
			layer.open({
					    content: '请先登录'
					    ,skin: 'msg'
					    ,time: 2 //2秒后自动关闭
					  });
		}
		function jsfun(){
			 layer.open({
					    content: '暂未开放'
					    ,skin: 'msg'
					    ,time: 2 //2秒后自动关闭
					  });
		}
		$('#submit').click(function(){
			var email=$('#email').val();
			var password = $('#password').val();
			    $.ajax({
                type:"post",
                url:"__APP__/Ajax/dolog",
                data:{'email':email,'password':password},
                //data:{pid_name:pid_name,pid_common:pid_common,pid_queqiao:pid_queqiao},
                success:function(msg){
                    if(msg.status=='1'){
						  layer.open({
						    type: 2
						    ,content: '加载中'
						  });
                        window.location.href = "__APP__/User/index";
                    }else{
                          layer.open({
					    content: msg.info
					    ,skin: 'msg'
					    ,time: 2 //2秒后自动关闭
					  });
                    }
                },
                error:function(){
                    alert('网络异常');
                }
            });
		});
	</script>
</html>
